package functional.currying;

/**
 * @ClassName Curry3Args
 * @PackageName functional.currying
 * @projectName myThread
 * @Description 
 * @Author games
 * @Date 2025/8/27 下午2:48
 * @Version 1.0
 */

import java.util.function.*;

public class Curry3Args {
    public static void main(String[] args) {
        Function<String,
                Function<String,
                        Function<String, String>>> sum =
                a -> b -> c -> a + b + c;
        Function<String,
                Function<String, String>> hi =
                sum.apply("Hi ");
        Function<String, String> ho =
                hi.apply("Ho ");
        System.out.println(ho.apply("Hup"));
    }
}